<template>
	<view style="width: 100vw;height: 100vh;">
		<!-- 使用video组件播放视频 -->
		<video v-if="videoUrl" :src="videoUrl" controls style="width:100vw;height: 100vh;"></video>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				videoUrl: ''
			}
		},
		onLoad(options) {
			this.videoUrl = encodeURI(options.url)
		},
		onShow() {
			// 当页面显示时播放视频
			// this.$refs.video?.play();
		}
	}
</script>